<form id="menu_url" action='index.php?app=site&ctl=admin_menu&act=saveurl' method='POST' class="tableform">
<input type='hidden' name='menu[id]' value='<{$menu.id}>' />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
  <th><{t}>菜单标题：<{/t}></th>
  <td><{input type="text" name="menu[title]" value=$menu.title vtype='required' size=15 }></td>
</tr>
<tr>
  <th><{t}>URL超链：<{/t}></th>
  <td><{input type="text" name="menu[custom_url]" value=$menu.custom_url vtype='required' }></td>
</tr>
<tr>
  <th><{t}>排序：<{/t}></th>
  <td><{input type="text" name="menu[display_order]" value=$menu.display_order|default:0 vtype='required&&number' size=4 }></td>
</tr>
<tr>
  <th><{t}>新开窗口：<{/t}></th>
  <td><input type='checkbox' name='menu[target_blank]' value='true' <{if $menu.target_blank eq 'true'}>checked<{/if}> /></td>
</tr>
<tr>
  <th><{t}>在菜单上隐藏：<{/t}></th>
  <td><input type='checkbox' name='menu[hidden]' value='true' <{if $menu.hidden eq 'true'}>checked<{/if}> /></td>
</tr>
</table>
<div class="table-action">
<{button type='submit' label=$___a='保存'|t:'site' }>
</div>

</form>

<script>
$('menu_url').store('target',{
	onComplete:function(){
		if($('menu_url').getParent('.dialog'))
		$('menu_url').getParent('.dialog').retrieve('instance').close();
	}
});
</script>